Optimal. Leaf size=159 \[ \frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{b \log \left (c x^2-\sqrt{2} \sqrt{c} x+1\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \log \left (c x^2+\sqrt{2} \sqrt{c} x+1\right )}{6 \sqrt{2} c^{3/2}}-\frac{b \tan ^{-1}\left (1-\sqrt{2} \sqrt{c} x\right )}{3 \sqrt{2} c^{3/2}}+\frac{b \tan ^{-1}\left (\sqrt{2} \sqrt{c} x+1\right )}{3 \sqrt{2} c^{3/2}}-\frac{2 b x}{3 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10147, antiderivative size = 159, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 8, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.571, Rules used = {5033, 321, 211, 1165, 628, 1162, 617, 204} \[ \frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{b \log \left (c x^2-\sqrt{2} \sqrt{c} x+1\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \log \left (c x^2+\sqrt{2} \sqrt{c} x+1\right )}{6 \sqrt{2} c^{3/2}}-\frac{b \tan ^{-1}\left (1-\sqrt{2} \sqrt{c} x\right )}{3 \sqrt{2} c^{3/2}}+\frac{b \tan ^{-1}\left (\sqrt{2} \sqrt{c} x+1\right )}{3 \sqrt{2} c^{3/2}}-\frac{2 b x}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5033
Rule 321
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int x^2 \left (a+b \tan ^{-1}\left (c x^2\right )\right ) \, dx &=\frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{1}{3} (2 b c) \int \frac{x^4}{1+c^2 x^4} \, dx\\ &=-\frac{2 b x}{3 c}+\frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{(2 b) \int \frac{1}{1+c^2 x^4} \, dx}{3 c}\\ &=-\frac{2 b x}{3 c}+\frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{b \int \frac{1-c x^2}{1+c^2 x^4} \, dx}{3 c}+\frac{b \int \frac{1+c x^2}{1+c^2 x^4} \, dx}{3 c}\\ &=-\frac{2 b x}{3 c}+\frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{b \int \frac{1}{\frac{1}{c}-\frac{\sqrt{2} x}{\sqrt{c}}+x^2} \, dx}{6 c^2}+\frac{b \int \frac{1}{\frac{1}{c}+\frac{\sqrt{2} x}{\sqrt{c}}+x^2} \, dx}{6 c^2}-\frac{b \int \frac{\frac{\sqrt{2}}{\sqrt{c}}+2 x}{-\frac{1}{c}-\frac{\sqrt{2} x}{\sqrt{c}}-x^2} \, dx}{6 \sqrt{2} c^{3/2}}-\frac{b \int \frac{\frac{\sqrt{2}}{\sqrt{c}}-2 x}{-\frac{1}{c}+\frac{\sqrt{2} x}{\sqrt{c}}-x^2} \, dx}{6 \sqrt{2} c^{3/2}}\\ &=-\frac{2 b x}{3 c}+\frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{b \log \left (1-\sqrt{2} \sqrt{c} x+c x^2\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \log \left (1+\sqrt{2} \sqrt{c} x+c x^2\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\sqrt{2} \sqrt{c} x\right )}{3 \sqrt{2} c^{3/2}}-\frac{b \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\sqrt{2} \sqrt{c} x\right )}{3 \sqrt{2} c^{3/2}}\\ &=-\frac{2 b x}{3 c}+\frac{1}{3} x^3 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{b \tan ^{-1}\left (1-\sqrt{2} \sqrt{c} x\right )}{3 \sqrt{2} c^{3/2}}+\frac{b \tan ^{-1}\left (1+\sqrt{2} \sqrt{c} x\right )}{3 \sqrt{2} c^{3/2}}-\frac{b \log \left (1-\sqrt{2} \sqrt{c} x+c x^2\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \log \left (1+\sqrt{2} \sqrt{c} x+c x^2\right )}{6 \sqrt{2} c^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0334661, size = 177, normalized size = 1.11 \[ \frac{a x^3}{3}-\frac{b \log \left (c x^2-\sqrt{2} \sqrt{c} x+1\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \log \left (c x^2+\sqrt{2} \sqrt{c} x+1\right )}{6 \sqrt{2} c^{3/2}}+\frac{b \tan ^{-1}\left (\frac{2 \sqrt{c} x-\sqrt{2}}{\sqrt{2}}\right )}{3 \sqrt{2} c^{3/2}}+\frac{b \tan ^{-1}\left (\frac{2 \sqrt{c} x+\sqrt{2}}{\sqrt{2}}\right )}{3 \sqrt{2} c^{3/2}}+\frac{1}{3} b x^3 \tan ^{-1}\left (c x^2\right )-\frac{2 b x}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 138, normalized size = 0.9 \begin{align*}{\frac{{x}^{3}a}{3}}+{\frac{b{x}^{3}\arctan \left ( c{x}^{2} \right ) }{3}}-{\frac{2\,bx}{3\,c}}+{\frac{b\sqrt{2}}{12\,c}\sqrt [4]{{c}^{-2}}\ln \left ({ \left ({x}^{2}+\sqrt [4]{{c}^{-2}}x\sqrt{2}+\sqrt{{c}^{-2}} \right ) \left ({x}^{2}-\sqrt [4]{{c}^{-2}}x\sqrt{2}+\sqrt{{c}^{-2}} \right ) ^{-1}} \right ) }+{\frac{b\sqrt{2}}{6\,c}\sqrt [4]{{c}^{-2}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{c}^{-2}}}}}+1 \right ) }+{\frac{b\sqrt{2}}{6\,c}\sqrt [4]{{c}^{-2}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{c}^{-2}}}}}-1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.53196, size = 354, normalized size = 2.23 \begin{align*} \frac{1}{3} \, a x^{3} + \frac{1}{12} \,{\left (4 \, x^{3} \arctan \left (c x^{2}\right ) + c{\left (\frac{\frac{\sqrt{2} \log \left (\sqrt{c^{2}} x^{2} + \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}} x + 1\right )}{{\left (c^{2}\right )}^{\frac{1}{4}}} - \frac{\sqrt{2} \log \left (\sqrt{c^{2}} x^{2} - \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}} x + 1\right )}{{\left (c^{2}\right )}^{\frac{1}{4}}} + \frac{\sqrt{2} \log \left (\frac{2 \, \sqrt{c^{2}} x - \sqrt{2} \sqrt{-\sqrt{c^{2}}} + \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}{2 \, \sqrt{c^{2}} x + \sqrt{2} \sqrt{-\sqrt{c^{2}}} + \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}\right )}{\sqrt{-\sqrt{c^{2}}}} + \frac{\sqrt{2} \log \left (\frac{2 \, \sqrt{c^{2}} x - \sqrt{2} \sqrt{-\sqrt{c^{2}}} - \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}{2 \, \sqrt{c^{2}} x + \sqrt{2} \sqrt{-\sqrt{c^{2}}} - \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}\right )}{\sqrt{-\sqrt{c^{2}}}}}{c^{2}} - \frac{8 \, x}{c^{2}}\right )}\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.80276, size = 807, normalized size = 5.08 \begin{align*} \frac{4 \, b c x^{3} \arctan \left (c x^{2}\right ) + 4 \, a c x^{3} - 4 \, \sqrt{2} c \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} \arctan \left (-\frac{\sqrt{2} b c^{5} x \left (\frac{b^{4}}{c^{6}}\right )^{\frac{3}{4}} - \sqrt{2} \sqrt{b^{2} x^{2} + \sqrt{2} b c x \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} + c^{2} \sqrt{\frac{b^{4}}{c^{6}}}} c^{5} \left (\frac{b^{4}}{c^{6}}\right )^{\frac{3}{4}} + b^{4}}{b^{4}}\right ) - 4 \, \sqrt{2} c \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} \arctan \left (-\frac{\sqrt{2} b c^{5} x \left (\frac{b^{4}}{c^{6}}\right )^{\frac{3}{4}} - \sqrt{2} \sqrt{b^{2} x^{2} - \sqrt{2} b c x \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} + c^{2} \sqrt{\frac{b^{4}}{c^{6}}}} c^{5} \left (\frac{b^{4}}{c^{6}}\right )^{\frac{3}{4}} - b^{4}}{b^{4}}\right ) + \sqrt{2} c \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} \log \left (b^{2} x^{2} + \sqrt{2} b c x \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} + c^{2} \sqrt{\frac{b^{4}}{c^{6}}}\right ) - \sqrt{2} c \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} \log \left (b^{2} x^{2} - \sqrt{2} b c x \left (\frac{b^{4}}{c^{6}}\right )^{\frac{1}{4}} + c^{2} \sqrt{\frac{b^{4}}{c^{6}}}\right ) - 8 \, b x}{12 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 28.3316, size = 1207, normalized size = 7.59 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23932, size = 223, normalized size = 1.4 \begin{align*} \frac{1}{12} \, b c^{5}{\left (\frac{2 \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \frac{\sqrt{2}}{\sqrt{{\left | c \right |}}}\right )} \sqrt{{\left | c \right |}}\right )}{c^{6} \sqrt{{\left | c \right |}}} + \frac{2 \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x - \frac{\sqrt{2}}{\sqrt{{\left | c \right |}}}\right )} \sqrt{{\left | c \right |}}\right )}{c^{6} \sqrt{{\left | c \right |}}} + \frac{\sqrt{2} \log \left (x^{2} + \frac{\sqrt{2} x}{\sqrt{{\left | c \right |}}} + \frac{1}{{\left | c \right |}}\right )}{c^{6} \sqrt{{\left | c \right |}}} - \frac{\sqrt{2} \log \left (x^{2} - \frac{\sqrt{2} x}{\sqrt{{\left | c \right |}}} + \frac{1}{{\left | c \right |}}\right )}{c^{6} \sqrt{{\left | c \right |}}}\right )} + \frac{b c x^{3} \arctan \left (c x^{2}\right ) + a c x^{3} - 2 \, b x}{3 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]